<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PlasmaWeb</title>
<link href='css/style.css' rel='stylesheet' type='text/css' />
<link href='css/shadowbox.css' rel='stylesheet' type='text/css' />
<!--[if IE 6]><link rel="stylesheet" href="css/ie6.css" type="text/css" media="screen" /><![endif]-->
<script type='text/javascript' src='js/jquery-1.4.3.min.js'></script>
<script type='text/javascript' src='js/jquery.tools.min.js'></script>
<script type='text/javascript' src='js/shadowbox.js'></script>

<script type='text/javascript' src='js/cufon-yui.js'></script>
<!--<script type='text/javascript' src='css/VistaSansLight_500-VistaSansBold_700.font.js'></script>-->
<script type='text/javascript' src='css/VistaSan_500-VistaSan_700.font.js'></script>
<script type='text/javascript'>
	Cufon.replace('#menuh');
	Cufon.replace('.texto font');
</script>
</head>

<body> 
     <?php if (!(isset($_SESSION['user'])&&isset($_SESSION['cod']))) {	
                    echo '<SCRIPT LANGUAGE="javascript">location.href = "login.php";</SCRIPT>';
     }?>
<div id="principal">
	<div id="top">
    	<div class="info">
        	<div class="info_der">Avenida 1-H No.133 local 6 x 12 y 14 C.P. 97128 Col. Fraccionamiento M&eacute;xico Norte, M&eacute;rida, Yucat&aacute;n.</div>
            <div class="info_izq"> mercadotecnia@grupoplasma.com.mx | (999)948-30-16</div>
        </div>
        <div id="cont_menu">
        	<div class="logo"><img src="imagenes/logo.jpg" /></div>
            <div id="menuh">
            	<ul id="men" class="group">
                    <li><a href="inicioAdmin.php" alt="home">Inicio</a></li>
                    <li><a href="" alt="seguridadAdmin.php">Seguridad</a></li>
                    <li class="current_page_item"><a href="#" alt="promocionales">Galeria</a></li>
                    <li><a href="productosAdmin.php" alt="servicios">Productos</a></li>
                    <li><a href="proveedoresAdmin.php" alt="contacto">Proveedores</a></li>
                    <li><a href="categoriasAdmin.php" alt="contacto">Categor&iacute;as</a></li>

                </ul>
            </div>
        </div>
    </div>
    <div class="contenido_resto" >
        <div class="cont_quienes" style="margin: auto">
    
        <div id="ajax_loader" ></div>
          <div id="VistaBanner">

            <table id="imagGaleriaEdit" class="tabla">
            <?php 
            include("js/funcion.inc");
            conecta();
            $sql = "SELECT * FROM galeria" ;
            $cons = mysql_query($sql);
 ?>         <tr>
                <th>Vista</th>
                <th>Nombre</th>
                <th>Opciones</th>
            </tr>
<?php
            $cont = 1;
            while($row = mysql_fetch_array($cons)){  
                if($cont%2==0) $className = "tr_1";
                else $className = "tr_2";
         ?>
                <tr <?php echo "class=$className"?>>
                    <td><img width="75px" height="75px" src="imagenes/galeria/<?php echo $row['imagen']; ?>" id="bannIm"></img></td>
                    <td><label id="nombre"  ><?php echo $row['nombre']; ?></label></td>
                    <td><a href="galeria_imagAdmin.php?edit=<?php echo $row['id']; ?>" id="ver">Ver</a></td>
                </tr><?php 
                $cont++;
                } ?>
            </table>
            </div>
        </div>
  </div>

    <div class="info">
        <div id="bottom">PLASMA Promotional Design | Dise&ntilde;o Gr&aacute;fico y Publicitario | Art&iacute;culos Promocionales | Publicidad | Producci&oacute;n | Corte y Grabado L&aacute;ser | Impresos | Campa&ntilde;as | Branding | Medios | Multimedia
            </div>
    </div>
    <div class="clear"></div>
</div>
<div class="clear"></div>
</body>
<script type="text/javascript">
$(document).ready(function() {
	var $el, leftPos, newWidth, $mainNav = $("#men");
    $mainNav.append("<li id='magic-line'></li>");
    var $magicLine = $("#magic-line");
    $magicLine
        .width($(".current_page_item").width())
        .css("left", $(".current_page_item a").position().left+47)
        .data("origLeft", $magicLine.position().left)
        .data("origWidth", $magicLine.width());
    $("#men li").find("a").hover(function() {
        $el = $(this);
		leftPos=$el.position().left+(($el.parent().width()-34)/2);
        newWidth = $el.parent().width();
        $magicLine.stop().animate({
            left: leftPos,
            width: newWidth
        });
		$(".current_page_item").removeClass('current_page_item');
		$el.parent().addClass('current_page_item');
		Cufon.refresh();
    }, function() {
        $magicLine.stop().animate({
            left: $magicLine.data("origLeft"),
            width: $magicLine.data("origWidth")
        });    
    });
	Shadowbox.init({
	});
});	
</script>
</html>